{% extends "base_generic.html" %}
{% load i18n %}

{% block content %}
    <h1>{% trans "All Borrowed Books" %}</h1>

    {% if bookinstance_list %}
    <ul>
      {% for bookinst in bookinstance_list %}
      <li class="{% if bookinst.is_overdue %}text-danger{% endif %}">
        {{ bookinst.book.title }} ({% translate "Due back" %}: {{ bookinst.due_back }}) - {% translate "Borrowed by" %}: {{ bookinst.borrower.username }}
      </li>
      {% endfor %}
    </ul>
    {% else %}
      <p>{% trans "There are no borrowed books." %}</p>
    {% endif %}
{% endblock %} 